﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebSvrUpdaterCore.Models
{
    public class UploadRequest
    {
        /// <summary>
        /// 上传地址
        /// </summary>
        public string UploadUrl { get; set; }

        /// <summary>
        /// 授权信令
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 上传文件名
        /// </summary>
        public string UploadFileName { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string[] FileFullPaths { get; set; }

        /// <summary>
        /// 是否把所有文件打包压缩上传
        /// 使用zip Deflate算法压缩文件
        /// </summary>
        public bool IsCompress { get; set; } = true;
    }

    public class UploadRespone :BaseRespone
    {
        public UploadRespone(int code,string msg) : base(code, msg)
        {

        }
        public string FileName { get; set; }

        public long FileSize { get; set; }

        public string FileMd5 { get; set; }

        public string FileUrl { get; set; }
    }
}
